<%@ page import="rentadomus.Phone" %>



<div class="fieldcontain ${hasErrors(bean: phoneInstance, field: 'phoneType', 'error')} ">
	<label for="phoneType">
		<g:message code="phone.phoneType.label" default="Phone Type" />
		
	</label>
	<g:select name="phoneType" from="${phoneInstance.constraints.phoneType.inList}" value="${phoneInstance?.phoneType}" valueMessagePrefix="phone.phoneType" noSelection="['': '']"/>
</div>

<!--<div class="fieldcontain ${hasErrors(bean: phoneInstance, field: 'idPerson', 'error')} required">
	<label for="idPerson">
		<g:message code="phone.idPerson.label" default="Id Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="idPerson" name="idPerson.id" from="${rentadomus.Person.list()}" optionKey="id" required="" value="${phoneInstance?.idPerson?.id}" class="many-to-one"/>
</div>-->

<div class="fieldcontain ${hasErrors(bean: phoneInstance, field: 'number', 'error')} required">
	<label for="number">
		<g:message code="phone.number.label" default="Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="number" type="text" value="${phoneInstance.number}" required=""/>
</div>

